<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>站点配置项</title>
    <script type="text/javascript" src="http://127.0.0.1/cms/cms/Static/js/jq.js"></script>
    <link type="text/css" rel="stylesheet" href="http://127.0.0.1/cms/cms/Static/hdjs/hdjs.css"/>
    <script type="text/javascript" src="http://127.0.0.1/cms/cms/Static/hdjs/hdjs.js"></script>
    <script type="text/javascript" src="http://127.0.0.1/cms/cms/Application/Admin/View/WebSet/js/ajax_action.js"></script>
</head>
<body>
<div class="wrap">
    <div class="hd-title-header">站点配置</div>
    <form action="<?php echo U('updates');?>" method="post" class="form-inline hd-form">
        <table class="hd-table hd-table-form hd-form">
            <tr>
                <td class="w100">名称</td>
                <td class="w100">值</td>
                <td class="w150">标题</td>
                <td class="w150">描述</td>
            </tr>
             <tr>
                <th colspan="100" style="text-align:center">站点信息</th>
            </tr>
            <?php foreach ($configs1 as $key=>$val){?>           
            <tr>
                <td class="w100"><?php echo $val['name'];?></td>
                <td class="w100"><input name="<?php echo $val['name'];?>" type="text" value="<?php echo $val['value'];?>" /></td>
                <td class="w150"><?php echo $val['title'];?></td>
                <td class="w150"><?php echo $val['des'];?></td>
            </tr>
             <?php }?>
               <tr>
                <th colspan="100" style="text-align:center">验证码</th>
            </tr>
            <?php foreach ($configs2 as $key=>$val){?>           
            <tr>
                <td class="w100"><?php echo $val['name'];?></td>
                <td class="w100"><input name="<?php echo $val['name'];?>" type="text" value="<?php echo $val['value'];?>" /></td>
                <td class="w150"><?php echo $val['title'];?></td>
                <td class="w150"><?php echo $val['des'];?></td>
            </tr>
             <?php }?>
               <tr>
                <th colspan="100" style="text-align:center">水印</th>
            </tr>
            <?php foreach ($configs3 as $key=>$val){?>           
            <tr>
                <td class="w100"><?php echo $val['name'];?></td>
                <td class="w100"><input name="<?php echo $val['name'];?>" type="text" value="<?php echo $val['value'];?>" /></td>
                <td class="w150"><?php echo $val['title'];?></td>
                <td class="w150"><?php echo $val['des'];?></td>
            </tr>
             <?php }?>
               <tr>
                <th colspan="100" style="text-align:center">缩略图</th>
            </tr>
            <?php foreach ($configs4 as $key=>$val){?>           
            <tr>
                <td class="w100"><?php echo $val['name'];?></td>
                <td class="w100"><input name="<?php echo $val['name'];?>" type="text" value="<?php echo $val['value'];?>" /></td>
                <td class="w150"><?php echo $val['title'];?></td>
                <td class="w150"><?php echo $val['des'];?></td>
            </tr>
             <?php }?>
            
        </table>
        <div class="position-bottom">
            <input type="submit" class="hd-btn hd-btn-primary" value="保存"/>
        </div>
    </form>
</div>
</body>
</html>